<template>
  <div id="detailmovie">
    {{this.movieId}}
  </div>
</template>

<script>
export default {
  name:'detailmovie',
  props:['movieId'],
  created(){
    this.getMovie()
  },
  data(){
    return {
      movie:{},
    }
  },
  methods:{
    async getMovie() {
      await this.axios
        .get(`https://apis.netstart.cn/maoyan/movie/detail?movieId=${this.movieId}`)
        .then((re) => {
          console.log(re);
          this.movie = re.data;
        });
    },
  }
}
</script>

<style>

</style>